<?php

class deckhead_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('deckhead');
    }

    function getPostLinks()
    {
        return $this->xpath->query("//html//body//h3//a");   
        
    }

    
    
}

class deckhead_post_scraper extends PostScraper
{

    function getTitle()
    {
        $text = $this->xpath->query("//html//body//h3//a")->item(0);
        $text = $text->nodeValue;
        return $text;
    }
    
    function getLink()
    {
        $text = $this->url;      
        return self::sanitize($text);
    }

    function getDate()
    {
       
        $date = $this->xpath->query("//html//body//h2[@class='date-header']")->item(0)->nodeValue;   
        list($junk, $date) = explode(',', $date, 2);
        $date = date('Y-m-d', strtotime($date));
        echo $date;
        return $date;
    }     
}

?>